package net.yxsoft.enumclass.infrastructure;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by mlb on 2016/8/31.
 */
public class DbFieldTypeEnumCls_mysql extends EnumClsBase<DbFieldTypeEnumCls_mysql> {

  public DbFieldTypeEnumCls_mysql(String text, String value) {
    super(text, value);
  }

  public static DbFieldTypeEnumCls_mysql VARCHAR2_100 = new DbFieldTypeEnumCls_mysql("VARCHAR(100)", "VARCHAR(100)");

  public static DbFieldTypeEnumCls_mysql VARCHAR2_400 = new DbFieldTypeEnumCls_mysql("VARCHAR(400)", "VARCHAR(400)");

  public static DbFieldTypeEnumCls_mysql VARCHAR2_2000 = new DbFieldTypeEnumCls_mysql("VARCHAR(2000)", "VARCHAR(2000)");

  public static DbFieldTypeEnumCls_mysql DATE = new DbFieldTypeEnumCls_mysql("DATE", "DATE");

  public static DbFieldTypeEnumCls_mysql CHAR_1 = new DbFieldTypeEnumCls_mysql("CHAR(1)", "CHAR(1)");

  public static DbFieldTypeEnumCls_mysql NUMBER = new DbFieldTypeEnumCls_mysql("int", "int(18)");

  public static DbFieldTypeEnumCls_mysql NUMBER_2 = new DbFieldTypeEnumCls_mysql("datetime", "datetime");

  public static DbFieldTypeEnumCls_mysql TEXT = new DbFieldTypeEnumCls_mysql("text", "text");

  public static List<DbFieldTypeEnumCls_mysql> COLLECTS_DEFAULTS = new ArrayList<DbFieldTypeEnumCls_mysql>() {
    {
      add(VARCHAR2_100);
      add(VARCHAR2_400);
      add(VARCHAR2_2000);
      add(DATE);
      add(CHAR_1);
      add(NUMBER);
      add(NUMBER_2);
      add(TEXT);
    }
  };

  public static List<DbFieldTypeEnumCls_mysql> COLLECTS_VARCHAR2 = new ArrayList<DbFieldTypeEnumCls_mysql>() {
    {
      add(VARCHAR2_100);
      add(VARCHAR2_400);
      add(VARCHAR2_2000);
    }
  };


}
